var Http = require('../../utils/Http');

var BASE_URL = 'http://127.0.0.1:9999/dbms/';
var API = {
	DB_SHOW: 'db/show',
	TABLE_SHOW: 'table/show',
    TABLE_DESC: 'table/desc'
}

module.exports = {
    showTables: function (db){
        return Http.post(BASE_URL + API.TABLE_SHOW, { db: db });
    },
    getTableDesc: function (db, table){
        return Http.post(BASE_URL + API.TABLE_DESC, { db: db, table: table });
    }
}
